/**
 * Copyright &copy; 2012-2016 <a 

href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights 

reserved.
 */
package com.thinkgem.jeesite.modules.tb_parts.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.tb_parts.entity.TbParts;
import com.thinkgem.jeesite.modules.tb_parts.dao.TbPartsDao;

/**
 * 汽车配件管理Service
 * @author LiJie
 * @version 2017-06-10
 */
@Service
@Transactional(readOnly = true)
public class TbPartsService extends CrudService<TbPartsDao, TbParts> {

	public TbParts get(String id) {
		return super.get(id);
	}
	
	public List<TbParts> findList(TbParts tbParts) {
		return super.findList(tbParts);
	}
	
	public Page<TbParts> findPage(Page<TbParts> page, TbParts 

tbParts) {
		return super.findPage(page, tbParts);
	}
	
	@Transactional(readOnly = false)
	public void save(TbParts tbParts) {
		super.save(tbParts);
	}
	
	@Transactional(readOnly = false)
	public void delete(TbParts tbParts) {
		super.delete(tbParts);
	}
	/**
	 * 汽车配件详情
	 * @param String
	 * @return ArrayList<TbParts>
	 */
	public ArrayList<TbParts> partsDetails(String id){
		return dao.partsDetails(id);
	}
}
